package com.dap.system.office.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.dap.common.core.annotation.Excel;
import com.dap.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分数对象 t_score
 *
 * @author dap
 * @date 2021-11-12
 */
public class TScore extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 考试时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "考试时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 课程id
     */
//    @Excel(name = "课程id")
    private Long courseId;


    /**
     * 学生id
     */
//    @Excel(name = "学生id")
    private Long stuId;

    /**
     * 班级 id
     */
//    @Excel(name = "班级id")
    private Long classId;


    /**
     * 是否通过
     */
    //@Excel(name = "是否通过")
    private Integer isPass;

    /**
     * 分数
     */
    @Excel(name = "分数")
    private Double score;

    /**
     * 业务删除
     */
    private String delFlag;

    /**
     * 学期id
     */
//    @Excel(name = "学期id")
    private Long semId;

    /**
     * 课程名称
     */
    @Excel(name = "课程名称")
    private String courseName;

    /**
     * 学生名称
     */
    @Excel(name = "学生名字")
    private String studentName;

    /**
     * 班级名称
     */
    @Excel(name = "班级名称")
    private String className;

    /** 年级名称 */
    @Excel(name = "年级名称")
    private String gradeName;

    /**
     * 学期名称
     */
    @Excel(name = "学期名称")
    private String semName;

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getSemName() {
        return semName;
    }

    public void setSemName(String semName) {
        this.semName = semName;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    public Integer getIsPass() {
        return isPass;
    }

    public void setStuId(Long stuId) {
        this.stuId = stuId;
    }

    public Long getStuId() {
        return stuId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getScore() {
        return score;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setSemId(Long semId) {
        this.semId = semId;
    }

    public Long getSemId() {
        return semId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("startTime", getStartTime())
                .append("courseId", getCourseId())
                .append("stuId",getStuId() )
                .append("classId", getClassId())
                .append("score", getScore())
                .append("isPass",getIsPass())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .append("semId", getSemId())
                .append("courseName", getCourseName())
                .append("studentName", getStudentName())
                .append("gradeName",getGradeName())
                .append("className", getClassName())
                .append("semName", getSemName())
                .toString();
    }
}
